<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<div class="layui-tab layui-tab-brief" th:fragment="tab">
    <ul class="layui-tab-title">
        <li th:class="${flag == 1 ? 'layui-this' : ''}"><a href="/msg/list.action" lay-text="全部消息">全部信息</a></li>
        <li th:class="${flag == 2 ? 'layui-this' : ''}"><a href="/msg/list.action?unReadFlag=true" lay-text="未处理">未处理</a></li>
    </ul>
</div>

</html>